package com.nuanshui.heatedloan.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class ApiLogoutController extends ApiController{

	/**
	 * 退出
	 */

	@RequestMapping(value="/cms/manage/logout", produces = "application/json;charset=UTF-8")
	@ResponseBody
	public String logout(HttpServletRequest request,HttpServletResponse response) {
			
			request.getSession().invalidate();
			request.getSession(false);
			return success();

	}
}
